import request from '@/utils/request'

export function listAssociation(query) {
  return request({ url: '/union/association/list', method: 'get', params: query })
}

export function getAssociation(id) {
  return request({ url: `/union/association/${id}`, method: 'get' })
}

export function addAssociation(data) {
  return request({ url: '/union/association', method: 'post', data })
}

export function updateAssociation(data) {
  return request({ url: '/union/association', method: 'put', data })
}

export function delAssociation(id) {
  return request({ url: `/union/association/${id}`, method: 'delete' })
}


